Copyright(C) 1994 Terumasa KODAKA , Takeshi KONO
■Graphic BIOS [PC-98LT/HA]
Overview of Graphic BIOS
o In PC-98LT/HA, the graphic BIOS for graphic drawing is provided as a program in ROM. This is a function that combines the normal mode graphic BIOS and Graph LIO.
However, it is not compatible with normal mode. It is similar to the high-resolution mode graphic BIOS.
o Since the technical data book provides a detailed explanation of the graphic BIOS, this book only provides the bare minimum of information.
However, some functions that contain confidential information are touched upon in detail.
Table Graphics mode of PC-98LT/HA
PC-98LT/HA------Monochrome-----640x400 dots
INT 1Dh - Function 00h (LT/HA)
Classification GRAPH BIOS
Name Graphic BIOS initialization (GINIT)
Target PC-98LT/HA
Input AH=00h
DS=Graphic BIOS work area segment
DS:0020h (DWORD)=Interrupt processing routine entry address
Output AH=Exit status
00h=Normal termination
05h=Illegal call
AL=Undefined
Explanation o
Related
INT 1Dh - Function 01h (LT/HA)
Classification GRAPH BIOS
Name Viewport area initialization (GSCREEN)
Target PC-98LT/HA
Input AH=01h
DS=Graphic BIOS work area segment
Output AH=Exit status
00h=Normal termination
05h=Illegal call
AL=Undefined
Explanation o
Related
INT 1Dh - Function 02h (LT/HA)
Classification GRAPH BIOS
Name Drawing area specification (GVIEW)
Target PC-98LT/HA
Input AH=02h
DS=Segment of work area for graphic BIOS
DS:0020h (WORD)=Upper left X coordinate of viewport (X1)
DS:0022h (WORD)=Upper left Y coordinate of viewport (Y1)
DS:0024h (WORD)=Lower right X coordinate of viewport (X2)
DS:0026h (WORD)=Lower right Y coordinate of viewport (Y2)
* X1<X2, Y1<Y2 must be satisfied
DS:0028h (BYTE)=Color to fill inside viewport
00h: White
01h: Black
FFh: Do not fill
DS:0029h(BYTE)=Color to draw the outer border of the viewport
00h: White
01h: Black
FFh: No border
Output AH=Exit status
00h=Normal termination
05h=Illegal call
AL=Undefined
Explanation o
Related
INT 1Dh - Function 03h(LT・HA)
Classification GRAPH BIOS
Name Foreground color, background color specification (GCOLOR1)
Target PC-98LT・HA
Input AH=03h
DS=Segment of work area for graphic BIOS
DS:0020h(BYTE)=Background color
00h: White
01h: Black
FFh: Do not change
DS:0021h(BYTE)=Foreground color
00h: White
01h: Black
FFh: Do not change
Output AH=Exit status
00h=Normal termination
05h=Unauthorized call
AL=Undefined
Explanation o
Related
INT 1Dh - Function 04h (LT/HA)
Classification GRAPH BIOS
Name None
Target PC-98LT/HA
Input AH=05h
Output None
Explanation o No function. In high-resolution graphic BIOS, this corresponds to the "match between palette number and display color".
Related
INT 1Dh - Function 05h (LT/HA)
Classification GRAPH BIOS
Name Clear drawing area (GCLS)
Target PC-98LT/HA
Input AH=05h
DS=Graphics BIOS work area segment
Output AH=Exit status
00h=Normal termination
05h=Illegal call
AL=Undefined
Explanation o
Related
INT 1Dh - Function 06h (LT/HA)
Classification GRAPH BIOS
Name Write dot (GPSET)
Target PC-98LT/HA
Input AH=06h
DS=Graphics BIOS work area segment
DS:0020h (WORD)=X coordinate to write dot
DS:0022h (WORD)=Y coordinate to write dot
DS:0024h (BYTE)=Palette number
00h: White
01h: Black
FFh: Writes with the palette number according to the operation mode specified by the AL register
AL=operation mode specification (when DS:0024h=FFh)
01h: Writes with the foreground color
02h: Writes with the background color
Output AH=exit status
00h=normal termination
05h=illegal call
AL=undefined
Explanation o
Related
INT 1Dh - Function 07h(LT・HA)
Classification GRAPH BIOS
Name Drawing lines and rectangles (GLINE)
Target PC-98LT・HA
Input AH=07h
DS=segment of work area for graphic BIOS
DS:0020h(WORD)=X coordinate of drawing start point (X1)(-32768 to 32767)
DS:0022h(WORD)=Y coordinate of drawing start point (Y1)(-32768 to 32767)
DS:0024h(WORD)=X coordinate of drawing end point (X2) (-32768 to 32767)
DS:0026h(WORD)=Y coordinate of drawing end point (Y2) (-32768 to 32767)
DS:0028h(BYTE)=Display color for drawing rectangle
00h: Black
01h: White
FFh: Omitted
DS:0029h(BYTE)=Drawing code
00h: Line drawing specification
01h: Rectangle drawing specification
02h: Filled rectangle drawing specification
■When drawing code = Line/Rectangle drawing specification
DS:002Ah(BYTE)=Switch (Whether or not line style is specified)
00h: No line style specification
01h: Line style specification
DS:002Bh(WORD)=Line style
* Specifies the line pattern for drawing straight lines and rectangles in 16 bits. \
When drawing a solid line, use FFFFh. Bit 0 corresponds to the left side of the screen, \
and bit 15 corresponds to the right side of the screen.
■When drawing code = Rectangle fill drawing is specified
DS:002Ah(BYTE)=Switch
00h: Do not specify fill color or tile pattern
01h: Specify rectangle fill color
02h: Specify tile pattern
DS:002Bh(BYTE)=Rectangle fill color (valid when switch = 01h)
00h: Black
01h: White
FFh: Omitted
DS:002Ch(BYTE)=Not used
DS:002Dh(BYTE)=Tile pattern length (valid when switch = 02h)
00-FFh: Tile pattern storage area length
DS:002Eh(DWORD)=Top address of tile pattern storage area (valid when switch = 02h)
Output AH=Exit status
00h=Normal termination
05h=Illegal call
AL=Undefined
Explanation o
Related
INT 1Dh - Function 08h (LT/HA)
Classification GRAPH BIOS
Name Drawing circles and ellipses (GCIRCLE)
Target PC-98LT/HA
Input AH=08h
DS=Segment of work area for graphic BIOS
DS:0020h (WORD)=X coordinate of center point (CX)
DS:0022h (WORD)=Y coordinate of center point (CY)
DS:0024h (WORD)=Radius in X-axis direction (RX)
DS:0026h (WORD)=Radius in Y-axis direction (RY)
DS:0028h (BYTE)=Circumference drawing color
00h: Black
01h: White
FFh: Foreground color
DS:0029h (BYTE)=Flag
bit 7: Unused
bit 6: Tile pattern specification (1=Yes, 0=No)
bit 5: Fill (1=Yes, 0=No)
bit 4: Drawing specification method when start point and end point match (1=Draw only matching points, 0=Draw entire ellipse)
bit 3: End line drawing (1=Yes, 0=No)
bit 2: End point specification (1=Yes, 0=No)
bit 1: Start line drawing (1=Yes, 0=No)
bit 0: Start point specification (1=Yes, 0=No)
DS:002Ah(WORD)=X coordinate of start point (SX)
DS:002Ch(WORD)=Y coordinate of start point (SY)
DS:002Eh(WORD)=X coordinate of end point (EX)
DS:0030h(WORD)=Y coordinate of end point (EY)
■Flag When bit 6,5=01b
DS:0032h(BYTE)=Color to fill inside of figure
00h: Black
01h: White
FFh: Same as the color of the circumference
■Flag When bit 6,5=11b
DS:0032h(BYTE)=Tile pattern length
00-FFh: Tile pattern storage area length
DS:0033h(DWORD)=Start address of tile pattern storage area
Output AH=Exit status
00h=Normal termination
05h=Illegal call
06h=Overflow
AL=Undefined
Explanation o
Related
INT 1Dh - Function 09h(LT・HA)
Classification GRAPH BIOS
Name Fill with specified color (GPAINT1)
Target PC-98LT・HA
Input AH=09h
DS=Segment of work area for graphic BIOS
DS:0020h(WORD)=X coordinate of the start point of filling (-32768-32767)
DS:0022h(WORD)=Y coordinate of the fill start point (-32768 to 32767)
DS:0024h(BYTE)=Area color palette number
00h: Black
01h: White
FFh: Fill with foreground color
DS:0025h(BYTE)=Border color palette number
00h: Black
01h: White
FFh: Foreground color is specified as border color
DS:0026h(WORD)=Last offset address of work area
DS:0028h(WORD)=First offset address of work area
Output AH=End status
00h=Normal termination
05h=Illegal call
07h=Processing interrupted due to insufficient work area
AL=Undefined
Explanation o
Related
INT 1Dh - Function 0Ah(LT・HA)
Classification GRAPH BIOS
Name Fill with tile pattern (GPAINT2)
Target PC-98LT/HA
Input AH=0Ah
DS=Segment of work area for graphic BIOS
DS:0020h(WORD)=X coordinate of start point of filling (-32768 to 32767)
DS:0022h(WORD)=Y coordinate of start point of filling (-32768 to 32767)
DS:0024h(BYTE)=Tile pattern length (01 to FFh)
DS:0025h(DWORD)=Start address of tile pattern storage area
DS:0029h(BYTE)=Border color
00h: Black
01h: White
FFh: Foreground color is specified as border color
DS:002Ah(WORD)=Final offset address of work area
DS:002Ch(WORD)=Start offset address of work area
Output AH=End status
00h=Normal end
05h=Illegal call
07h=Processing interrupted due to insufficient work area
AL=Undefined
Explanation o
Related
INT 1Dh - Function 0Bh(LT・HA)
Classification GRAPH BIOS
Name Screen image storage (GGET)
Target PC-98LT・HA
Input AH=0Bh
DS:0020h(WORD)=Upper left X coordinate of specified area (X1)
DS:0022h(WORD)=Upper left Y coordinate of specified area (Y1)
DS:0024h(WORD)=Lower right X coordinate of specified area (X2)
DS:0026h(WORD)=Lower right Y coordinate of specified area (Y2)
DS:0028h(DWORD)=Start address of storage area
DS:002Ch(WORD)=Length of storage area
Output AH=Exit status
00h=Normal termination
05h=Illegal call
AL=Undefined
Explanation o
Related
INT 1Dh - Function 0Ch(LT・HA)
Classification GRAPH BIOS
Name Screen image recovery (GPUT1)
Target PC-98LT・HA
Input AH=0Ch
DS=Graphics BIOS work area segment
DS:0020h(WORD)=Upper left X coordinate of drawing area (X1)
DS:0022h(WORD)=Upper left Y coordinate of drawing area (Y1)
DS:0024h(DWORD)=Start address of storage area
DS:0028h(WORD)=Length of storage area
DS:002Ah(BYTE)=Drawing mode
00h=Draws image from storage area as is
01h=Draws image from storage area by NOT
02h=Draws image from storage area and original screen pattern by OR
03h=Draws image from storage area and original screen pattern by AND
04h=Draws the image in the storage area and the original screen pattern by XORing it.
Output AH = End status
00h=Normal termination
05h=Illegal call
AL = Undefined
Explanation o
Related
INT 1Dh - Function 0Dh (LT/HA)
Classification GRAPH BIOS
Name Japanese character drawing (GPUT2)
Target PC-98LT/HA
Input AH = 0Dh
DS = Graphic BIOS work area segment
DS:0020h (WORD) = Upper left X coordinate of the drawing area
DS:0022h (WORD) = Upper left Y coordinate of the drawing area
DS:0024h (WORD) = Japanese JIS code
DS:0026h (BYTE) = Drawing mode
00h=Draws Japanese characters as they are
01h=Draws Japanese characters by NOTing them
02h=Draws Japanese characters by ORing them with the original screen pattern
03h=Draw Japanese characters and the original screen pattern by ANDing
04h=Draw Japanese characters and the original screen pattern by XORing
Output AH=End status
00h=Normal termination
05h=Illegal call
AL=Undefined
Explanation o
Related
INT 1Dh - Function 0Eh(LT・HA)
Classification GRAPH BIOS
Name Screen image movement (GROLL)
Target PC-98LT・HA
Input AH=0Eh
DS=Graphics BIOS work area segment
DS:0020h(WORD)=Number of dots up and down
+1 to +399: Upward
-399 to -1: Downward
DS:0022h(WORD)=Number of dots left and right
+1 to +639: Leftward
-639 to -1: Rightward
* In reality, it moves by the nearest multiple of 8 that is less than the absolute value of the specified value.
DS:0024h(BYTE)=Clear flag
00h: Fill remaining area after move with black
01h: Fill remaining area after move with background color
Output AH=Exit status
00h=Normal termination
05h=Illegal call
AL=Undefined
Explanation o
Related
INT 1Dh - Function 0Fh(LT・HA)
Classification GRAPH BIOS
Name Obtain palette number of specified dot (GPOINT2)
Target PC-98LT・HA
Input AH=0Fh
DS=Segment of work area for graphic BIOS
DS:0020h(WORD)=X coordinate of dot for which palette number is required (-32768 to 32767)
DS:0022h(WORD)=Y coordinate of dot for which palette number is required (-32768 to 32767)
Output AH=Exit status
00h=Normal termination
05h=Illegal call
AL=00h: Black
01h: White
FFh: Specified coordinates are outside the viewport
Explanation o
Related
INT 1Dh - Function 10h (LT/HA)
Classification GRAPH BIOS
Name Screen image expansion (GCOPY)
Unimplemented
Target PC-98LT/HA
Input AH=10h
DX=X coordinate of the upper left corner of the specified area
BX=Y coordinate of the upper left corner of the specified area
CL=Number of dots in the X-axis direction of the specified area
CH=Number of dots in the Y-axis direction of the specified area
ES:DI=First address of the storage area
Output AH=Exit status
Explanation u The 1990 edition Technical Data Book contains an explanation of this function, but it is not implemented in either the PC-98LT or the PC-98HA.
Related